import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取中心库信息
export const getCentralStorehouse = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/centralWarehouse`, { params });
// 查重
export const selectByDM = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/centralWarehouse/selectByDM`, { params });

// 新增中心库信息
export const addCentralStorehouse = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/centralWarehouse`,  params );

// 修改中心库信息
export const updateCentralStorehouse = params => axios.put(`${SERVER.CMSCLOUD_WMS}/part/centralWarehouse`,  params );

// 批量启用
export const piliangqiyong = params => axios.put(`${SERVER.CMSCLOUD_WMS}/part/centralWarehouse/piliangqiyong`,  params );

// 批量停用
export const piliangtingyong = params => axios.put(`${SERVER.CMSCLOUD_WMS}/part/centralWarehouse/piliangtingyong`,  params );
